package com.wenchao.app.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.wenchao.serialport.ByteUtils;

/**
 * 【类的描述】介绍一下该类的用途
 *
 * @author zhangwenchao
 * @date 2021-12-29
 */
public class SerialPortDataReceiver extends BroadcastReceiver {

    private static final String TAG = SerialPortDataReceiver.class.getSimpleName();

    @Override
    public void onReceive(Context context, Intent intent) {
        byte[] data = intent.getByteArrayExtra("data");
        Log.e(TAG, ByteUtils.bytesToHexString(data));
    }
}
